package com.p2p.common.DTO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import java.sql.Timestamp;

public class CarouselDto {

    @ApiModelProperty(name = "id",notes = "id",dataType = "Integer",required = true)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Integer id;
    @ApiModelProperty(name = "title",notes = "标题",dataType = "String",required = false)
    private String title;
    @ApiModelProperty(name = "location",notes = "轮播位置",dataType = "String",required = false)
    private String location;
    @ApiModelProperty(name = "startTime",notes = "开始时间",dataType = "Timestamp",required = false)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private Timestamp startTime;
    @ApiModelProperty(name = "endTime",notes = "结束时间",dataType = "Timestamp",required = false)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private Timestamp endTime;
    @ApiModelProperty(name = "sort",notes = "排序",dataType = "Integer",required = false)
    private Integer sort;
    @ApiModelProperty(name = "status",notes = "状态",dataType = "Byte",required = false)
    private Byte status;
    @ApiModelProperty(name = "imgUrl",notes = "图片路径",dataType = "String",required = false)
    private String imgUrl;
    @ApiModelProperty(name = "carouselUrl",notes = "轮播跳转路径",dataType = "String",required = false)
    private String carouselUrl;

}
